package com.sg.dto.biz.bff.common;


import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffHostTypeDto
 * @使用场景
 */
@Data
public class BffHostTypeDto extends PagedDto implements Serializable {

    /**
     * 宿主类型ID:
     */
    @ApiModelProperty("宿主类型ID")
    private String hostTypeId;

    /**
     * 宿主类型编码:
     */
    @ApiModelProperty("宿主类型编码")
    private String hostTypeCode;

    /**
     * 宿主类型名称:
     */
    @ApiModelProperty("宿主类型名称")
    private String hostTypeName;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 个人账号ID:
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;
    /**
     * 是否推荐:
     */
    @ApiModelProperty("是否推荐")
    private String isRecommend;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffHostTypeDto that = (BffHostTypeDto) o;
        return hostTypeId == that.hostTypeId && hostTypeCode == that.hostTypeCode && hostTypeName == that.hostTypeName && subjectLifeCycle == that.subjectLifeCycle && operationInductionId == that.operationInductionId && operateTime == that.operateTime && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && isRecommend == that.isRecommend;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), hostTypeId, hostTypeCode, hostTypeName, subjectLifeCycle, operationInductionId, operateTime, userId, userFace, idCardName, nickName, isRecommend);
    }

}
